//
//  LFFunction.m
//  QingDaoCommunity
//
//  Created by 李学林 on 15/11/22.
//  Copyright © 2015年 teteTechnology. All rights reserved.
//

#import "LFFunction.h"
#import "MD5.h"

@implementation LFFunction


+ (void)setValue:(BOOL)value forKey:(NSString *)key{

    [[NSUserDefaults  standardUserDefaults] setBool:value forKey:key];

    [[NSUserDefaults standardUserDefaults]synchronize];
}

+ (NSString *)getTimeThuo{


return [NSString stringWithFormat:@"%f",[[NSDate date] timeIntervalSince1970]];

}


+ (NSString *)MD5WithArray:(NSArray *)array{

     NSMutableString *mutableStr = [[NSMutableString alloc]init];

    [array enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        [mutableStr appendString:obj];
        
    }];
    
    
    
    return [MD5 MD5Encrypt:mutableStr];

}
@end
